package cn.edu.xust.service.impl;

import cn.edu.xust.util.PageUtils;
import cn.edu.xust.util.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import cn.edu.xust.dao.CollectlogDao;
import cn.edu.xust.entity.CollectlogEntity;
import cn.edu.xust.service.CollectlogService;


@Service("collectlogService")
public class CollectlogServiceImpl extends ServiceImpl<CollectlogDao, CollectlogEntity> implements CollectlogService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CollectlogEntity> page = this.page(
                new Query<CollectlogEntity>().getPage(params),
                new QueryWrapper<CollectlogEntity>()
        );

        return new PageUtils(page);
    }

}